<template>
  <div>
    <button @click="goNext">M4过关</button>
    <button @click="f">M4失败</button>
    <F :isShow="failed" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      failed: false
    };
  },
  methods: {
    goNext() {
      this.$su.show();
      setTimeout(() => {
        this.$su.hide();
        this.$router.push("diwuguan");
      }, 2000);
    },
    f() {
        this.failed = true;
    }
  }
};
</script>

<style>
</style>
